package com.v.common.log;

import ch.qos.logback.classic.PatternLayout;
import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
import ch.qos.logback.classic.spi.ILoggingEvent;

import java.io.IOException;

/**
 * Created by wangjinfeng on 2016/7/27.
 */
public class LogBackExEncoder extends PatternLayoutEncoder {

    static {
        PatternLayout.defaultConverterMap.put("T", LogBackThreadConverter.class.getName());
        PatternLayout.defaultConverterMap.put("X", LogBackCallChainThreadConverter.class.getName());
    }


    @Override
    public byte[] encode(ILoggingEvent event) {
        return super.encode(event);
    }
}
